package yunjiao.designpatterns.singleton;

import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * 入口
 *
 * @author yangyunjiao
 */
@Slf4j
public class App {
    public static void main(String[] args) throws IOException {
        System.out.println("SingletonClass:");
        System.out.println(SingletonClass.getInstance());
        System.out.println(SingletonClass.getInstance());
        System.out.println(SingletonClass.getInstance().getProperties());

        System.out.println("SingletonClassMono:");
        System.out.println(SingletonClassMono.getProperties());
    }


}
